package us.gaaoc.framework.webapp.backingbeans.agent;

import us.gaaoc.framework.webapp.backingbeans.BaseBackingBean;
import us.gaaoc.framework.webapp.controllers.model.TableView;

/**
 * This is the definition of what tables the agent can see.
 * @author artripa
 * @todo Make it court specific.
 * @todo Implement an interface that has court specific hooks.
 * @todo remove LinkedList extend
 */



public class AgentTableViews extends java.util.LinkedList<TableView> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public AgentTableViews() {
		super();
		BaseBackingBean baseBackingBean = new BaseBackingBean();
		String courtUuid = (String)baseBackingBean.getFacesContext().getExternalContext().getSessionMap().get("courtUuid");
		add(new TableView("legalPreparationStatusTable","Legal Preparation",true,7,7,7,7,7,true));
		add(new TableView("existingFilingTable","Existing Filing",false,15,15,15,15,15,true));
		if (courtUuid.equalsIgnoreCase("courtUuid4")) {
			add(new TableView("rejectedByAttorney","Rejected Filing",true,8,8,8,8,3,true));
		} else {
			add(new TableView("rejectedByAttorney","Rejected By Attorney",true,8,8,8,8,8,true));
			add(new TableView("rejectedByClerk","Rejected By Clerk",true,3,3,3,3,3,true));
		}		
		add(new TableView("attorneysStatusTable","Attorney",true,10,10,11,16,16,true));
		add(new TableView("courtsStatusTableReceived","Court Received",false,14,1,20,20,21,true));		
		//add(new TableView("default","Court Imported",false,2,2,2,2,2,true));
		add(new TableView("default","Legal Preparer Dashboard",true,7,7,7,7,7,true));
		add(new TableView("courtsStatusTableDisposed","Cases Decided",false,6,6,6,6,6,true));	
		add(new TableView("queuedImport","Queued for Import",false,21,21,21,21,21,false));
		add(new TableView("failEtoImport","Failed to Import",false,22,22,22,22,22,false));
		
		//add(	TableView.separator());
		
		//add(	TableView.tagged("taggedCases","Tagged Cases"));
		
	}
}
